﻿<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="Bookmark" href="/favicon.ico" >
<link rel="Shortcut Icon" href="/favicon.ico" />
<!--[if lt IE 9]>
<script type="text/javascript" src="__ADMIN__/lib/html5shiv.js"></script>
<script type="text/javascript" src="__ADMIN__/lib/respond.min.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="__ADMIN__/static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="__ADMIN__/static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="__ADMIN__/lib/Hui-iconfont/1.0.8/iconfont.css" />
<link rel="stylesheet" type="text/css" href="__ADMIN__/static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="__ADMIN__/static/h-ui.admin/css/style.css" />
<link rel="stylesheet" type="text/css" href="__ADMIN__/layui/css/layui.css" />
<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>创亿宝后台系统</title>
<meta name="keywords" content="创亿宝">
<meta name="description" content="创亿宝后台管理系统">
	<style>
		.cont{
			display: block;
			line-height: 35px;
			cursor: pointer;
			position: relative;
			font-family: "微软雅黑";
		}

		.cont i{
			position: absolute;
			overflow: hidden;
			top: 0;
			right: 15px;
			transition-duration: 0.3s;
			transition-property: all;
		}
		.cont-ul{
			display: none;
		}
		.cont-ul a{
			padding-left: 40px !important;
		}
		.Hui-userbar{
			top:88px
		}
	</style>
</head>
<body>
<header class="navbar-wrapper">
	<div class="navbar navbar-fixed-top">
		<div class="container-fluid cl" style="height: 88px"> <a class="logo navbar-logo f-l mr-10 hidden-xs" href="/aboutHui.shtml">创亿宝</a> <a class="logo navbar-logo-m f-l mr-10 visible-xs" href="/aboutHui.shtml"></a>
			<span class="logo navbar-slogan f-l mr-10 hidden-xs">v2.0</span>
			<a aria-hidden="false" class="nav-toggle Hui-iconfont visible-xs" href="javascript:;">&#xe667;</a>
		<nav id="Hui-userbar" class="nav navbar-nav navbar-userbar hidden-xs" >
			<ul class="cl">
				<li>
					{if $adminuser['avatar']}
					<div style="width: 50px;height: 50px;border-radius: 25px;background: url('{$adminuser['avatar']}') no-repeat;background-size: 100%"></div>
					{/if}
				</li>
				<li class="dropDown dropDown_hover">
					<a href="#" class="dropDown_A">{$adminuser['nick_name']}<i class="Hui-iconfont">&#xe6d5;</i></a>
					<ul class="dropDown-menu menu radius box-shadow">
						<li><a href="javascript:;" onClick="myselfinfo()">个人信息</a></li>
						<li><a href="{:url('index/index')}">切换账户</a></li>
						<li><a href="{:url('index/tuichu')}">退出</a></li>
				</ul>
			</li>
				<li id="Hui-skin" class="dropDown right dropDown_hover"> <a href="javascript:;" class="dropDown_A" title="换肤"><i class="Hui-iconfont" style="font-size:18px">&#xe62a;</i></a>
					<ul class="dropDown-menu menu radius box-shadow">
						<li><a href="javascript:;" data-val="default" title="默认（黑色）">默认（黑色）</a></li>
						<li><a href="javascript:;" data-val="blue" title="蓝色">蓝色</a></li>
						<li><a href="javascript:;" data-val="green" title="绿色">绿色</a></li>
						<li><a href="javascript:;" data-val="red" title="红色">红色</a></li>
						<li><a href="javascript:;" data-val="yellow" title="黄色">黄色</a></li>
						<li><a href="javascript:;" data-val="orange" title="橙色">橙色</a></li>
					</ul>
				</li>
			</ul>
		</nav>
	</div>
</div>
</header>
<aside class="Hui-aside">
	<div class="menu_dropdown bk_2">
		<dl id="menu-article">
			<dt><i class="Hui-iconfont">&#xe616;</i> 分类管理</dt>
			<dd>
				<ul>
					{php}$developer = config('developer');{/php}
					{if $developer}
					<li><a data-href="{:url('model/show_list')}" data-title="模型管理" href="javascript:;">模型管理</a></li>
					{/if}
					<li><a data-href="{:url('document/show_list')}" data-title="文档管理" href="javascript:void(0)">文档管理</a></li>
					<li><a data-href="{:url('column/show_list')}" data-title="栏目管理" href="javascript:void(0)">栏目管理</a></li>
				</ul>
			</dd>
		</dl>
		<dl>
			<dt><i class="Hui-iconfont">&#xe622;</i> 内容管理<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
			<dd>
				<ul>
					{foreach $data as $value}
					<li>
						<div class="cont"><a data-href="{$value['create_url']}?cid={$value['id']}" data-title="{$value['name']}" href="javascript:void(0)">{$value['name']}</a><i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></div>
						<div class="cont-ul">
							{if $value['xia']}
							{foreach $value['xia'] as $v}
							<a data-href="{$value['create_url']}?cid={$v['id']}" data-title="{$v['name']}" href="javascript:void(0)">{php}echo str_repeat('&nbsp;&nbsp;&nbsp;',$v['chen']);{/php}|{$v['name']}</a>
							{/foreach}
							{/if}
						</div>
					</li>
					{/foreach}
				</ul>
			</dd>
		</dl>
		<dl id="menu-admin">
			<dt><i class="Hui-iconfont">&#xe62d;</i> 权限管理<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
			<dd>
				<ul>
					<li><a data-href="{:url('rote/show_list')}" data-title="角色管理" href="javascript:void(0)">角色管理</a></li>
					<li><a data-href="{:url('privilege/show_list')}" data-title="权限管理" href="javascript:void(0)">权限管理</a></li>
					<li><a data-href="{:url('adminuser/show_list')}" data-title="管理员列表" href="javascript:void(0)">管理员列表</a></li>
				</ul>
			</dd>
		</dl>
		<dl>
			<dt><i class="Hui-iconfont">&#xe66f;</i> 用户管理<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
			<dd>
				<ul>
					<li><a data-href="{:url('user/occupation_list')}" data-title="用户职业设置" href="javascript:void(0)">用户职业设置</a></li>
					<li><a data-href="{:url('user/vip_power_list')}" data-title="用户Vip权限设置" href="javascript:void(0)">用户Vip权限设置</a></li>
					<li><a data-href="{:url('user/member')}" data-title="用户Vip设置" href="javascript:void(0)">用户Vip设置</a></li>
					<li><a data-href="{:url('user/user_list')}" data-title="用户组权限设置" href="javascript:void(0)">用户列表</a></li>
				</ul>
			</dd>
		</dl>
		<dl id="menu-product">
			<dt><i class="Hui-iconfont">&#xe620;</i> 单表管理<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
			<dd>
				<ul>
					{if $danbiao}
					{foreach $danbiao as $value}
					<li><a data-href="{:url('danbiao/show_list')}?modelid={$value['id']}" data-title="{$value['model_name']}" href="javascript:void(0)">{$value['model_name']}</a></li>
					{/foreach}
					{/if}
				</ul>
			</dd>
		</dl>
		<dl id="menu-product">
			<dt><i class="Hui-iconfont">&#xe620;</i> 联表管理<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
			<dd>
				<ul>
					{if $lanbiao}
					{foreach $lanbiao as $value}
					<li><a data-href="{:url('lianbiao/show_list')}?modelid={$value['id']}" data-title="{$value['model_name']}" href="javascript:void(0)">{$value['model_name']}</a></li>
					{/foreach}
					{/if}
				</ul>
			</dd>
		</dl>
		<dl id="menu-tongji">
			<dt><i class="Hui-iconfont">&#xe61a;</i> 数据库管理<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
			<dd>
				<ul>
					<li><a data-href="{:url('database/showdata')}" data-title="数据库备份" href="javascript:void(0)">数据库备份</a></li>
				</ul>
			</dd>
		</dl>
		<dl>
			<dt><i class="Hui-iconfont">&#xe62e;</i> 常规管理<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
			<dd>
				<ul>
					<li><a data-href="{:url('conf/conf')}" data-title="系统配置" href="javascript:void(0)">系统配置</a></li>
					<li><a data-href="{:url('conf/lst')}" data-title="配置列表" href="javascript:void(0)">配置列表</a></li>
				</ul>
			</dd>
		</dl>
	</div>
</aside>
<div class="dislpayArrow hidden-xs"><a class="pngfix" href="javascript:void(0);" onClick="displaynavbar(this)"></a></div>
<section class="Hui-article-box">
	<div id="Hui-tabNav" class="Hui-tabNav hidden-xs">
		<div class="Hui-tabNav-wp">
			<ul id="min_title_list" class="acrossTab cl">
				<li class="active">
					<span title="控制台" data-href="{:url('index/welcome')}">控制台</span>
					<em></em></li>
		</ul>
	</div>
		<div class="Hui-tabNav-more btn-group"><a id="js-tabNav-prev" class="btn radius btn-default size-S" href="javascript:;"><i class="Hui-iconfont">&#xe6d4;</i></a><a id="js-tabNav-next" class="btn radius btn-default size-S" href="javascript:;"><i class="Hui-iconfont">&#xe6d7;</i></a></div>
</div>
	<div id="iframe_box" class="Hui-article">
		<div class="show_iframe">
			<div style="display:none" class="loading"></div>
			<iframe scrolling="yes" frameborder="0" src="{:url('index/welcome')}"></iframe>
	</div>
</div>
</section>

<div class="contextMenu" id="Huiadminmenu">
	<ul>
		<li id="closethis">关闭当前 </li>
		<li id="closeall">关闭全部 </li>
</ul>
</div>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="__ADMIN__/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="__ADMIN__/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="__ADMIN__/static/h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="__ADMIN__/static/h-ui.admin/js/H-ui.admin.js"></script> <!--/_footer 作为公共模版分离出去-->
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="__ADMIN__/lib/jquery.contextmenu/jquery.contextmenu.r2.js"></script>
<script type="text/javascript" src="__ADMIN__/js/maowenke.js"></script>
<script type="text/javascript">
$(function(){

});
//$(".menu_dropdown a").click(function () {
////    $("a").click();
//    event.stopPropagation();
//});
/**自动备份
 */
function zidongbeifen() {
	ajaxUpdate('{:url("database/automatic")}',{},'true','post',function (data) {
		console.log(data);
    });
	setTimeout(zidongbeifen,1000*3600);
}
zidongbeifen();
/*个人信息*/
function myselfinfo(){
    layer_shows('个人信息',"{:url('adminuser/getuser')}");
//	layer.open({
//		type: 1,
//		area: ['500px','500px'],
//		fix: false, //不固定
//		maxmin: true,
//		shade:0.4,
//		title: '查看信息',
//		url: ""
//	});
}
$('.cont-ul a').on('click',function (event) {
//    console.log(this);
//    var src = $(this).attr('data-href');
//	var title = $(this).attr('data-title');
//    Hui_admin_tab(this);
//    if($(window).width()<768){
//        $(".Hui-aside").slideToggle();
//    }
//
//    event.stopPropagation();
});
$(".bie").click(function () {
    window.event? window.event.cancelBubble = true : e.stopPropagation();
});
$('.cont').on('click',function (event) {
    if( $(this).is('.active')){
        $(this).removeClass('active');
        $(this).next('div').slideUp();
        $(this).find('i').css({
            'transform': 'rotate(0deg)'
        })
    }else {
        $(this).addClass('active');
        $(this).next('div').slideDown();
        console.log($(this).find('i'));
        $(this).find('i').css({
            'transform': 'rotate(180deg)'
   		 })
    }
})
/*资讯-添加*/
function article_add(title,url){
	var index = layer.open({
		type: 2,
		title: title,
		content: url
	});
	layer.full(index);
}
/*图片-添加*/
function picture_add(title,url){
	var index = layer.open({
		type: 2,
		title: title,
		content: url
	});
	layer.full(index);
}
/*产品-添加*/
function product_add(title,url){
	var index = layer.open({
		type: 2,
		title: title,
		content: url
	});
	layer.full(index);
}
/*用户-添加*/
function member_add(title,url,w,h){
	layer_show(title,url,w,h);
}
</script> 
</body>
</html>